public class TransientController {
    DateTime t1;
//    DateTime t2;
     transient DateTime t2;
   
    public string getT1(){
        if (t1==null){
            t1 = System.now();
        }
        
        return '' + t1;
    }
    
        public string getT2(){
        if (t2==null){
            t2 = System.now();
        }
        
        return '' + t2;
    }

}